<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <style>
        body {
            background: #fff
        }

        .aui-margin-b-15 {
            margin-bottom: 0 !important
        }

        .aui-list {
            background-image: none !important
        }

        .balance {
            height: 7.85rem;
            margin: 1rem .6rem;
            text-align: center;
            box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.1);
            border-radius: .5rem;
            padding-top: 1.2rem;
        }
    </style>
</head>

<body>
    <div id="app">


        <section>
            <div class="font-14 text-color-3 balance">
                <div class="font-12 text-color-9">
                    可用余额
                </div>
                <div class="font-semibold  text-color-3" style="margin:.5rem;font-size:1.8rem;margin-top:.4rem">950.00</div>
            </div>
        </section>
        <section class="aui-content white-bg-radius" style="margin:2rem 0.6rem 0.6rem 0.6rem;">
            <ul class="aui-list aui-list-in aui-margin-b-15" v-for='item in list'>
                <li class="aui-list-item function-item height-50" tapmode @click='functionList(item.index)'>
                    <div class="aui-list-item-label-icon">
                        <img :src="item.img" alt="" style="height:1.1rem;width:1.1rem;margin-right:.65rem">
                    </div>
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-title font-14 text-color-3">{{item.text}}</div>
                    </div>
                </li>
            </ul>

        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript " src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js "></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {
            list: [{
                img: '../../image/merchant/tx.png',
                text: '余额提现',
                index: 0
            }, {
                img: '../../image/merchant/mx.png',
                text: '流水明细',
                index: 1
            }, {
                img: '../../image/merchant/sr.png',
                text: '预期收入',
                index: 2
            }, {
                img: '../../image/merchant/yhk.png',
                text: '银行卡',
                index: 3
            }]
        },
        methods: {
            functionList: function(index) {
                switch (index) {
                    case 0:
                        api.openWin({
                            name: 'balance-withdrawal_win',
                            url: './balance-withdrawal_win.html',
                            pageParam: {
                                name: 'test'
                            }
                        });
                        break;
                    case 1:
                        api.openWin({
                            name: 'water-detail_win',
                            url: './water-detail_win.html',
                            pageParam: {
                                name: 'test'
                            }
                        });

                        break;
                    case 2:
                        api.openWin({
                            name: '_win',
                            url: './_win.html',
                            pageParam: {
                                name: 'test'
                            }
                        });

                        break;
                    case 3:
                        api.openWin({
                            name: 'card-list_win',
                            url: './card-list_win.html',
                            pageParam: {
                                name: 'test'
                            }
                        });

                        break;
                    default:

                }
            }
        }
    });
    apiready = function() {
        api.parseTapmode();
    };
</script>

</html>
